<!--
描述：我的首页-公司公告-查看组件
开发人：sunlf
开发日期：2017年8月17日
-->
<template lang="pug">
  kalix-dialog.user-add(bizKey="note"
  ref="kalixBizDialog" v-bind:formModel.sync="formModel" isView)
    div.el-form(slot="dialogFormSlot")
      el-form-item(label="标题" prop="title" v-bind:rules="rules.title")
        el-input(v-model="formModel.title" readonly)
      el-form-item(label="内容" prop="content" v-bind:rules="rules.content")
        el-input(v-model="formModel.content" type="area" readonly)
      el-form-item(label="发布人" prop="publishPeople" v-bind:rules="rules.publishPeople")
        el-input(v-model="formModel.publishPeople" readonly)
      el-form-item(label="发布时间" prop="publishDate" v-bind:rules="rules.publishDate")
        el-input(v-model="formModel.publishDate" readonly)
</template>

<script type="text/ecmascript-6">
  // import Dialog from '@/components/custom/baseDialog.vue'
  import {NoteURL} from '../config.toml'
  import {FormModel} from './model.toml'

  export default {
    name: 'CommonNoteView',
    data() {
      return {
        rules: {
          title: [{required: true, message: '请输入标题', trigger: 'blur'}],
          content: [{required: true, message: '请输入内容', trigger: 'blur'}]
        },
        targetURL: NoteURL,
        formModel: Object.assign({}, FormModel)
      }
    },
    created() {
    },
    components: {
      // KalixDialog: Dialog
    },
    methods: {
    }
  }
</script>
